// src/mock/index.ts
import Mock from "mockjs";
var mock_default = [
  // 每一个假接口都是一个对象
  {
    url: "/list",
    method: "get",
    response: () => {
      return {
        code: 1e4,
        message: "\u6A21\u62DF\u6570\u636E\u6210\u529F",
        data: [1, 2, 3, 4]
      };
    }
  },
  {
    url: "/userList",
    method: "get",
    response: () => {
      const data = [];
      for (let i = 0; i < 10; i++) {
        data.push(
          Mock.mock({
            id: "@id",
            // 得到随机id 保证唯一
            avatar: '@image("100x100", "#4A7BF7", "hello")',
            gender: "@integer(0, 1)",
            // 0 女 1 男
            desc: "@ctitle(10, 20)",
            name: "@ctitle(2, 4)",
            birthday: "@datetime()"
          })
        );
      }
      return {
        code: 1e4,
        message: "\u83B7\u53D6\u7528\u6237\u5217\u8868\u6210\u529F",
        data
      };
    }
  },
  {}
];
export {
  mock_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsic3JjL21vY2svaW5kZXgudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9faW5qZWN0ZWRfZmlsZW5hbWVfXyA9IFwiL1VzZXJzL2xpcWlhbmdsaS9EZXNrdG9wL2NvZGUvaG0xMTAtdnVlMy1jcC9zcmMvbW9jay9pbmRleC50c1wiO2NvbnN0IF9faW5qZWN0ZWRfZGlybmFtZV9fID0gXCIvVXNlcnMvbGlxaWFuZ2xpL0Rlc2t0b3AvY29kZS9obTExMC12dWUzLWNwL3NyYy9tb2NrXCI7Y29uc3QgX19pbmplY3RlZF9pbXBvcnRfbWV0YV91cmxfXyA9IFwiZmlsZTovLy9Vc2Vycy9saXFpYW5nbGkvRGVza3RvcC9jb2RlL2htMTEwLXZ1ZTMtY3Avc3JjL21vY2svaW5kZXgudHNcIjsvLyBcdThGRDlcdTkxQ0NcdTUzQkJcdTZBMjFcdTYyREZcdTUwNDdcdTY1NzBcdTYzNkVcbi8vIFx1NjIxMVx1NEVFQ1x1NUUwQ1x1NjcxQlx1NTcy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